using System.Collections.Generic;
using System.Xml.Serialization;

namespace Commons.Models.Settings.Dtos.Scores
{
	[XmlRoot(ElementName = "config", Namespace = "http://www.ibeltran.com/schema/game/highscore")]
	[XmlInclude(typeof(HighScoreConfigDto))]
	public class HighScoreConfigDto
	{
		[XmlAttributeAttribute(AttributeName = "schemaLocation", Namespace = "http://www.w3.org/2001/XMLSchema-instance")]
		public string xsiSchemaLocation = "schema/highscore-config.xsd";

		[XmlArray(ElementName = "highscores", Namespace = "http://www.ibeltran.com/schema/game/highscore", IsNullable = false), XmlArrayItem(ElementName = "highscore", Namespace = "http://www.ibeltran.com/schema/game/highscore")]
		public List<HighScoreDefinitionDto> HighScores;
	}
}

